﻿@model OpenMVCRM.ViewModels.ContactPersonViewModel

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true, "Please fill all")
<fieldset>

<div class="divContainer">
<div class="divEditBar">
<div class="divBreadCrump">
      <span>You are here : </span>
      @Html.ActionLink("Contact", "Index") <span class="breadCrumpSeperator"></span>
      Create
</div>
<div class="divEditRightLinks">    
</div>
</div>

<div class="divCreateForm">

@using (Html.BeginForm())
{ 
    
    <div class="formLeft">
    <h3>Contact Information</h3>
    <div class="editor-label">
        @Html.LabelFor(m => m.FirstName)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(m => m.FirstName)
        @Html.ValidationMessageFor(m => m.FirstName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(m => m.LastName)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(m => m.LastName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(m => m.EmailAddress)
    </div>  
    <div class="editor-field">
        @Html.TextBoxFor(m => m.EmailAddress)  
    </div> 
    </div>      
    <div class="formLeft">
    <h3>Organization Details</h3>
    <div class="editor-label">
        @Html.LabelFor(m => m.ParentOrganizationName)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(m => m.ParentOrganizationName)
        @Html.ValidationMessageFor(m => m.ParentOrganizationName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(m => m.JobTitle)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(m => m.JobTitle)
    </div>
    <div class="editor-label">
        @Html.LabelFor(m => m.Department)
    </div>  
    <div class="editor-field">
        @Html.TextBoxFor(m => m.Department)  
    </div> 
    </div> 
       
    <p>
       <input type="submit" value="Save" />
    </p>
}
</div>
</div>
</fieldset>
